﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cindock="clr-namespace:CodeIn.Ui.Dock"
		xmlns:term="clr-namespace:AurelienRibon.Ui.Terminal;assembly=AurelienRibon.Ui.Terminal"
		xmlns:ac="clr-namespace:Tomers.WPF.Controls">

	<!--**************************************************-->
	<!--BRUSHES-->
	<!--**************************************************-->

	<!--COMMON-->
	<SolidColorBrush x:Key="CommonStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="CommonFillBrush" Color="White" />
	<SolidColorBrush x:Key="CommonTextBrush" Color="Black" />
	<SolidColorBrush x:Key="CommonAltStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="CommonAltFillBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="CommonAltTextBrush" Color="White" />

	<!--GROUPBOX-->
	<SolidColorBrush x:Key="GroupBoxHeaderStrokeBrush" Color="#FF888888" />
	<LinearGradientBrush x:Key="GroupBoxHeaderFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF3F3F3" />
		<GradientStop Color="#FFB1B1B1" Offset="0.836" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="GroupBoxHeaderForegroundBrush" Color="Black" />
	<SolidColorBrush x:Key="GroupBoxStrokeBrush" Color="#FF888888" />
	<LinearGradientBrush x:Key="GroupBoxFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE7E7E7" />
		<GradientStop Color="White" Offset="0.252" />
	</LinearGradientBrush>

	<!--MAINTABCONTROL-->
	<SolidColorBrush x:Key="MainTabControlStrokeBrush" Color="#FF888888" />
	<LinearGradientBrush x:Key="MainTabControlHeaderFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFE7E7E7" Offset="0" />
		<GradientStop Color="White" Offset="0.252" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="MainTabControlFillBrush" Color="White" />

	<!--MAINTABITEM-->
	<LinearGradientBrush x:Key="MainTabItemFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF3F3F3" Offset="0" />
		<GradientStop Color="#FFE5E5E5" Offset="1" />
		<GradientStop Color="#FFDADADA" Offset="0.284" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="MainTabItemStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="MainTabItemForegroundBrush" Color="Black" />
	<SolidColorBrush x:Key="MainTabItemLineBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="MainTabItemUnselectedFillBrush" Color="White" />
	<SolidColorBrush x:Key="MainTabItemUnselectedStrokeBrush" Color="#FFBBBBBB" />
	<SolidColorBrush x:Key="MainTabItemUnselectedForegroundBrush" Color="Black" />
	<LinearGradientBrush x:Key="MainTabItemUnselectedMouseOverFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFBABABA" Offset="1" />
		<GradientStop Color="White" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="MainTabItemCrossStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="MainTabItemCrossMouseOverStrokeBrush" Color="#000" />

	<!--CHILDTABCONTROL-->
	<LinearGradientBrush x:Key="ChildTabControlHeaderFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF3F3F3" />
		<GradientStop Color="#FFB1B1B1" Offset="0.836" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ChildTabControlHeaderStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ChildTabControlHeaderForegroundBrush" Color="Black" />
	<SolidColorBrush x:Key="ChildTabControlBodyFillBrush" Color="White" />
	<SolidColorBrush x:Key="ChildTabControlBodyStrokeBrush" Color="#FF888888" />

	<!--CHILDTABITEM-->
	<LinearGradientBrush x:Key="ChildTabItemFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD2D2D2" Offset="1" />
		<GradientStop Color="White" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ChildTabItemStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ChildTabItemForegroundBrush" Color="Black" />
	<SolidColorBrush x:Key="ChildTabItemLineStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ChildTabItemUnselectedFillBrush" Color="White" />
	<SolidColorBrush x:Key="ChildTabItemUnselectedStrokeBrush" Color="#FFBBBBBB" />
	<SolidColorBrush x:Key="ChildTabItemUnselectedForegroundBrush" Color="Black" />
	<LinearGradientBrush x:Key="ChildTabItemUnselectedMouseOverFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="White" Offset="0" />
		<GradientStop Color="#FFCCCCCC" Offset="1" />
		<GradientStop Color="#FFDEDEDE" Offset="0.504" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ChildTabItemCrossStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ChildTabItemCrossMouseOverStrokeBrush" Color="#000" />

	<!--BUTTON-->
	<SolidColorBrush x:Key="ButtonStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ButtonFocusStrokeBrush" Color="#FF888888" />
	<SolidColorBrush x:Key="ButtonInnerStrokeBrush" Color="#FFEDEDED" />
	<SolidColorBrush x:Key="ButtonOuterStrokeBrush" Color="#888" />
	<SolidColorBrush x:Key="ButtonPressedFillBrush" Color="#FF6A6A6A" />
	<LinearGradientBrush x:Key="ButtonFillBrush" EndPoint="0,1">
		<GradientStop Offset="0.256" Color="#FFF7F7F7" />
		<GradientStop Offset="0.788" Color="#FFC8C8C8" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonCheckedFillBrush" EndPoint="0,1">
		<GradientStop Offset="0.28" Color="#FF979797" />
		<GradientStop Offset="0.736" Color="#FFC8C8C8" />
	</LinearGradientBrush>

	<!--TEXTBOX-->
	<SolidColorBrush x:Key="TextBoxStrokeBrush" Color="#888" />
	<SolidColorBrush x:Key="TextBoxOuterBrush" Color="#FFEFC92D" />
	<SolidColorBrush x:Key="TextBoxFillBrush" Color="White" />
	<SolidColorBrush x:Key="TextBoxDisabledFillBrush" Color="#FFEBEBEB" />
	<SolidColorBrush x:Key="TextBoxDisabledTextBrush" Color="#FF888888" />

	<!--TERMINAL-->
	<SolidColorBrush x:Key="TerminalForegroundBrush" Color="White" />
	<SolidColorBrush x:Key="TerminalFillBrush" Color="#555" />

	<!--STATUSBAR-->
	<LinearGradientBrush x:Key="StatusBarFillBrush" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFBBBBBB" Offset="0" />
		<GradientStop Color="#FF555555" Offset="0.608" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="StatusBarStrokeBrush" Color="#888" />
	<SolidColorBrush x:Key="StatusBarForeground" Color="White" />

	<!--WINDOW-->
	<SolidColorBrush x:Key="WindowFillBrush" Color="#CCC" />

	<!--**************************************************-->
	<!--STYLES-->
	<!--**************************************************-->

	<!--TEXTBLOCK-->
	<Style TargetType="{x:Type TextBlock}">
		<Setter Property="Foreground" Value="Black" />
	</Style>

	<!--GROUPBOX-->
	<Style TargetType="{x:Type GroupBox}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type GroupBox}">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<Border Grid.Row="0" Panel.ZIndex="1" Margin="0,0,0,-1" BorderThickness="1"
								BorderBrush="{StaticResource GroupBoxHeaderStrokeBrush}"
								Background="{StaticResource GroupBoxHeaderFillBrush}" Padding="5,2"
								CornerRadius="3,3,0,0">
							<ContentPresenter ContentSource="Header"
									TextBlock.Foreground="{StaticResource GroupBoxHeaderForegroundBrush}" />
						</Border>
						<Border Name="Border" Grid.Row="1" BorderThickness="1" CornerRadius="0,0,0,0"
								Padding="{TemplateBinding Padding}" BorderBrush="{StaticResource GroupBoxStrokeBrush}"
								Background="{StaticResource GroupBoxFillBrush}">
							<ContentPresenter ContentSource="Content" />
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--MAINTABITEM-->
	<Style x:Key="MainTabItemStyle" TargetType="{x:Type TabItem}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="Margin" Value="0,0,-10,0" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Panel.ZIndex" Value="100" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TabItem}">
					<StackPanel VerticalAlignment="Bottom">
						<DockPanel>
							<ac:CommandSource.Trigger>
								<ac:EventCommandTrigger RoutedEvent="MouseUp" Command="{Binding RequestCloseCommand}" />
							</ac:CommandSource.Trigger>
							<Grid DockPanel.Dock="Right" Width="25" Margin="-1,0,0,0" Panel.ZIndex="1">
								<Path x:Name="PathFill" Stretch="Fill" Data="M 0,0 C 1,0 1,1.7 2,2 H 0 Z"
										StrokeThickness="0" Fill="{StaticResource MainTabItemFillBrush}" />
								<Path x:Name="PathStroke" Stretch="Fill" Data="M 0,0 C 1,0 1,1.7 2,2"
										Stroke="{StaticResource MainTabItemStrokeBrush}" />
								<Button x:Name="Cross" Width="8" Margin="0,0,0,-2" Height="8" VerticalAlignment="Center"
										HorizontalAlignment="Left" Command="{Binding RequestCloseCommand}"
										Style="{x:Null}" OverridesDefaultStyle="True">
									<Button.Template>
										<ControlTemplate TargetType="{x:Type Button}">
											<Grid Background="Transparent">
												<ContentPresenter />
											</Grid>
										</ControlTemplate>
									</Button.Template>
									<Grid>
										<Path x:Name="CrossStroke1" Stretch="Fill" Data="M 0,0 L 1,1"
												StrokeThickness="1"
												Stroke="{StaticResource MainTabItemCrossStrokeBrush}" />
										<Path x:Name="CrossStroke2" Stretch="Fill" Data="M 0,1 L 1,0"
												StrokeThickness="1"
												Stroke="{StaticResource MainTabItemCrossStrokeBrush}" />
									</Grid>
								</Button>
							</Grid>
							<Border Name="Border" BorderThickness="1,1,0,0" CornerRadius="5,0,0,0"
									BorderBrush="{StaticResource MainTabItemStrokeBrush}"
									Background="{StaticResource MainTabItemFillBrush}"
									Padding="{TemplateBinding Padding}">
								<ContentPresenter x:Name="ContentSite" Margin="10,5,10,5" VerticalAlignment="Center"
										HorizontalAlignment="Left" ContentSource="Header" TextBlock.FontWeight="Bold"
										TextBlock.Foreground="{StaticResource MainTabItemForegroundBrush}" />
							</Border>
						</DockPanel>
						<Rectangle x:Name="Line" Height="1" Opacity="0" Fill="{StaticResource MainTabItemLineBrush}"
								Margin="0,-1,0,0" />
					</StackPanel>
					<ControlTemplate.Triggers>
						<Trigger Property="IsSelected" Value="False">
							<Setter Property="Panel.ZIndex" Value="0" />
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource MainTabItemUnselectedFillBrush}" />
							<Setter TargetName="Border" Property="BorderBrush"
									Value="{StaticResource MainTabItemUnselectedStrokeBrush}" />
							<Setter TargetName="Line" Property="Opacity" Value="1" />
							<Setter TargetName="ContentSite" Property="TextBlock.Foreground"
									Value="{StaticResource MainTabItemUnselectedForegroundBrush}" />
							<Setter TargetName="PathStroke" Property="Stroke"
									Value="{StaticResource MainTabItemUnselectedStrokeBrush}" />
							<Setter TargetName="PathFill" Property="Fill"
									Value="{StaticResource MainTabItemUnselectedFillBrush}" />
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="False" />
								<Condition Property="IsMouseOver" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource MainTabItemUnselectedMouseOverFillBrush}" />
							<Setter TargetName="PathFill" Property="Fill"
									Value="{StaticResource MainTabItemUnselectedMouseOverFillBrush}" />
						</MultiTrigger>
						<Trigger SourceName="Cross" Property="IsMouseOver" Value="true">
							<Setter TargetName="CrossStroke1" Property="Stroke"
									Value="{StaticResource MainTabItemCrossMouseOverStrokeBrush}" />
							<Setter TargetName="CrossStroke2" Property="Stroke"
									Value="{StaticResource MainTabItemCrossMouseOverStrokeBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--MAINTABCONTROL-->
	<Style TargetType="{x:Type cindock:MainTabControl}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="SelectedIndex" Value="0" />
		<Setter Property="ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Title}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<ContentPresenter Content="{Binding Body}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type cindock:MainTabControl}">
					<ControlTemplate.Resources>
						<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource MainTabItemStyle}" />
					</ControlTemplate.Resources>

					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<StackPanel x:Name="HeaderPanel" Grid.Row="0" Panel.ZIndex="1" Orientation="Horizontal"
								Margin="0,0,15,-1" IsItemsHost="True" Background="Transparent" />
						<Border x:Name="border" Grid.Row="1" BorderThickness="1" CornerRadius="0,5,0,0"
								Padding="0,5,0,0" BorderBrush="{StaticResource MainTabControlStrokeBrush}"
								Background="{StaticResource MainTabControlHeaderFillBrush}">
							<Border BorderThickness="0,1,0,0" BorderBrush="{StaticResource MainTabControlStrokeBrush}"
									Background="{StaticResource MainTabControlFillBrush}">
								<ContentPresenter Name="PART_SelectedContentHost" Margin="{TemplateBinding Padding}"
										ContentSource="SelectedContent" />
							</Border>
						</Border>
					</Grid>

					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding Items.Count, RelativeSource={RelativeSource Self}}" Value="0">
							<Setter TargetName="border" Property="Opacity" Value="0.5" />
						</DataTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--CHILDTABITEM-->
	<Style x:Key="ChildTabItemStyle" TargetType="{x:Type TabItem}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TabItem}">
					<StackPanel VerticalAlignment="Bottom">
						<Rectangle x:Name="Line" Height="1" Margin="0,0,0,-1" Panel.ZIndex="1"
								Fill="{StaticResource ChildTabItemLineStrokeBrush}" Opacity="0" />
						<Border x:Name="Border" BorderThickness="1,0,1,1" CornerRadius="0,0,0,0"
								BorderBrush="{StaticResource ChildTabItemStrokeBrush}"
								Background="{StaticResource ChildTabItemFillBrush}" Padding="{TemplateBinding Padding}">
							<DockPanel>
								<ac:CommandSource.Trigger>
									<ac:EventCommandTrigger RoutedEvent="MouseUp"
											Command="{Binding RequestCloseCommand}" />
								</ac:CommandSource.Trigger>
								<Button x:Name="Cross" Width="8" Margin="3,0,3,-2" Height="8" VerticalAlignment="Center"
										HorizontalAlignment="Left" Command="{Binding RequestCloseCommand}"
										Style="{x:Null}" OverridesDefaultStyle="True" DockPanel.Dock="Right">
									<Button.Template>
										<ControlTemplate TargetType="{x:Type Button}">
											<Grid Background="Transparent">
												<ContentPresenter />
											</Grid>
										</ControlTemplate>
									</Button.Template>
									<Grid>
										<Path x:Name="CrossStroke1" Stretch="Fill" Data="M 0,0 L 1,1"
												StrokeThickness="1"
												Stroke="{StaticResource MainTabItemCrossStrokeBrush}" />
										<Path x:Name="CrossStroke2" Stretch="Fill" Data="M 0,1 L 1,0"
												StrokeThickness="1"
												Stroke="{StaticResource MainTabItemCrossStrokeBrush}" />
									</Grid>
								</Button>
								<ContentPresenter x:Name="ContentSite" VerticalAlignment="Top" ContentSource="Header"
										Margin="5,2" TextBlock.Foreground="{StaticResource ChildTabItemForegroundBrush}" />
							</DockPanel>
						</Border>
					</StackPanel>

					<ControlTemplate.Triggers>
						<Trigger Property="IsSelected" Value="False">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ChildTabItemUnselectedFillBrush}" />
							<Setter TargetName="Border" Property="BorderBrush"
									Value="{StaticResource ChildTabItemUnselectedStrokeBrush}" />
							<Setter TargetName="ContentSite" Property="TextBlock.Foreground"
									Value="{StaticResource ChildTabItemUnselectedForegroundBrush}" />
							<Setter TargetName="Line" Property="Opacity" Value="1" />
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="False" />
								<Condition Property="IsMouseOver" Value="True" />
							</MultiTrigger.Conditions>
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ChildTabItemUnselectedMouseOverFillBrush}" />
						</MultiTrigger>
						<Trigger SourceName="Cross" Property="IsMouseOver" Value="true">
							<Setter TargetName="CrossStroke1" Property="Stroke"
									Value="{StaticResource MainTabItemCrossMouseOverStrokeBrush}" />
							<Setter TargetName="CrossStroke2" Property="Stroke"
									Value="{StaticResource MainTabItemCrossMouseOverStrokeBrush}" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--CHILDTABCONTROL-->
	<Style TargetType="{x:Type cindock:ChildTabControl}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="SelectedIndex" Value="0" />
		<Setter Property="ItemTemplate">
			<Setter.Value>
				<DataTemplate>
					<TextBlock Text="{Binding Title}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ContentTemplate">
			<Setter.Value>
				<DataTemplate>
					<ContentPresenter Content="{Binding Body}" />
				</DataTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type cindock:ChildTabControl}">
					<ControlTemplate.Resources>
						<Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource ChildTabItemStyle}" />
					</ControlTemplate.Resources>

					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<Border Grid.Row="0" BorderThickness="1,1,1,0" CornerRadius="3,3,0,0"
								BorderBrush="{StaticResource ChildTabControlHeaderStrokeBrush}"
								Background="{StaticResource ChildTabControlHeaderFillBrush}">
							<TextBlock DockPanel.Dock="Top" Margin="5,2" FontWeight="Bold"
									Foreground="{StaticResource ChildTabControlHeaderForegroundBrush}"
									Text="{Binding SelectedValue.Title, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
						</Border>
						<Border x:Name="border" Grid.Row="1" BorderThickness="1" CornerRadius="0,0,0,0"
								BorderBrush="{StaticResource ChildTabControlBodyStrokeBrush}"
								Background="{StaticResource ChildTabControlBodyFillBrush}">
							<ContentPresenter Name="PART_SelectedContentHost" Margin="{TemplateBinding Padding}"
									ContentSource="SelectedContent" />
						</Border>
						<UniformGrid Rows="1" x:Name="HeaderPanel" Grid.Row="2" Panel.ZIndex="1" Margin="0,-1,0,0"
								IsItemsHost="True" Background="Transparent" />
					</Grid>

					<ControlTemplate.Triggers>
						<DataTrigger Binding="{Binding Items.Count, RelativeSource={RelativeSource Self}}" Value="0">
							<Setter TargetName="border" Property="Opacity" Value="0.5" />
						</DataTrigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--BUTTON-->
	<Style TargetType="{x:Type Button}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<Border x:Name="OuterGlow" Opacity="0" CornerRadius="5"
								Background="{StaticResource ButtonOuterStrokeBrush}" Margin="-2">
							<Border.Effect>
								<BlurEffect Radius="7" />
							</Border.Effect>
						</Border>
						<Border x:Name="Border" CornerRadius="3" BorderThickness="1"
								BorderBrush="{StaticResource ButtonStrokeBrush}"
								Background="{StaticResource ButtonFillBrush}">
							<Border BorderThickness="1" CornerRadius="3"
									BorderBrush="{StaticResource ButtonInnerStrokeBrush}">
								<Grid>
									<Rectangle x:Name="FocusStroke" RadiusX="3" RadiusY="3" Stroke="Transparent"
											StrokeThickness="1" StrokeDashArray="2,1" />
									<ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="Center"
											VerticalAlignment="Center" />
								</Grid>
							</Border>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsFocused" Value="true">
							<Setter TargetName="FocusStroke" Property="Stroke"
									Value="{StaticResource ButtonFocusStrokeBrush}" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="OuterGlow" Property="Opacity" Value="1" />
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ButtonPressedFillBrush}" />
						</Trigger>
						<Trigger Property="IsDefaulted" Value="true">
							<Setter TargetName="FocusStroke" Property="Stroke"
									Value="{StaticResource ButtonFocusStrokeBrush}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter TargetName="Border" Property="Opacity" Value="0.50" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--TOGGLEBUTTON-->
	<Style TargetType="{x:Type ToggleButton}">
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<Grid>
						<Border x:Name="OuterGlow" Opacity="0" Background="{StaticResource ButtonOuterStrokeBrush}"
								Margin="-2" CornerRadius="5">
							<Border.Effect>
								<BlurEffect Radius="7" />
							</Border.Effect>
						</Border>
						<Border x:Name="Border" CornerRadius="3" BorderThickness="1"
								BorderBrush="{StaticResource ButtonStrokeBrush}"
								Background="{StaticResource ButtonFillBrush}">
							<Border BorderThickness="1" CornerRadius="3"
									BorderBrush="{StaticResource ButtonInnerStrokeBrush}">
								<Grid>
									<Rectangle x:Name="FocusStroke" RadiusX="3" RadiusY="3" Stroke="Transparent"
											StrokeThickness="1" StrokeDashArray="2,1" />
									<ContentPresenter Margin="{TemplateBinding Padding}" HorizontalAlignment="Center"
											VerticalAlignment="Center" />
								</Grid>
							</Border>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsFocused" Value="true">
							<Setter TargetName="FocusStroke" Property="Stroke"
									Value="{StaticResource ButtonFocusStrokeBrush}" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter TargetName="OuterGlow" Property="Opacity" Value="1" />
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ButtonPressedFillBrush}" />
						</Trigger>
						<Trigger Property="IsChecked" Value="true">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource ButtonCheckedFillBrush}" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter TargetName="Border" Property="Opacity" Value="0.50" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--TEXTBOX-->
	<Style TargetType="{x:Type TextBox}">
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="OverridesDefaultStyle" Value="True" />
		<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		<Setter Property="AllowDrop" Value="true" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TextBoxBase}">
					<Grid>
						<Border x:Name="Outer" CornerRadius="5" Margin="-1"
								Background="{StaticResource TextBoxOuterBrush}" Opacity="0" />
						<Border x:Name="Border" CornerRadius="3" Background="{StaticResource TextBoxFillBrush}"
								Padding="2" BorderBrush="{StaticResource TextBoxStrokeBrush}" BorderThickness="1">
							<ScrollViewer Margin="0" x:Name="PART_ContentHost" />
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="false">
							<Setter TargetName="Border" Property="Background"
									Value="{StaticResource TextBoxDisabledFillBrush}" />
							<Setter Property="Foreground" Value="{StaticResource TextBoxDisabledTextBrush}" />
						</Trigger>
						<Trigger Property="IsFocused" Value="true">
							<Setter TargetName="Outer" Property="Opacity" Value="1" />
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--TERMINAL-->
	<Style TargetType="{x:Type term:Terminal}">
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="OverridesDefaultStyle" Value="false" />
		<Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		<Setter Property="AllowDrop" Value="true" />
		<Setter Property="AcceptsReturn" Value="false" />
		<Setter Property="AcceptsTab" Value="true" />
		<Setter Property="Foreground" Value="{StaticResource TerminalForegroundBrush}" />
		<Setter Property="Background" Value="{StaticResource TerminalFillBrush}" />
		<Setter Property="FontSize" Value="12" />
		<Setter Property="FontFamily" Value="Courier New" />
		<Setter Property="HorizontalScrollBarVisibility" Value="auto" />
		<Setter Property="VerticalScrollBarVisibility" Value="Visible" />
	</Style>

	<!--STATUSBAR-->
	<Style TargetType="{x:Type StatusBar}">
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="OverridesDefaultStyle" Value="false" />
		<Setter Property="BorderBrush" Value="{StaticResource StatusBarStrokeBrush}" />
		<Setter Property="Background" Value="{StaticResource StatusBarFillBrush}" />
	</Style>

	<!--WINDOW (MUST BE APPLIED MANUALLY IN NEW WINDOWS)-->
	<Style x:Key="WindowStyle" TargetType="{x:Type Window}">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Window}">
					<Grid Background="{StaticResource WindowFillBrush}">
						<Grid>
							<Grid.Background>
								<VisualBrush TileMode="Tile" Viewport="0,0,10,10" ViewportUnits="Absolute">
									<VisualBrush.Visual>
										<Image Opacity="0.05" Source="pack://application:,,,/resources/gfx/windows_back01.png" />
									</VisualBrush.Visual>
								</VisualBrush>
							</Grid.Background>
							<ContentPresenter />
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>